<?php

class Fpt_Business_Block_section
{

    protected function __construct()
    {}
    
    /**
     *
     * @param array $options
     * @return thethao_modules_spy_business_match_adapter_abstract
     */
    public static function factory($options)
    {
        if(is_array($options) && isset($options['adapter']))
        {
            $className = __CLASS__ . "_adapter_" . $options['adapter'];
            return call_user_func(array($className, 'getInstance'));
        }
        throw new Core_Exception('Invalid Class Name', $options);
    }
}